﻿ 
using System;
using System.Runtime.Serialization;
using System.Xml.Serialization;

namespace NTTDATA.BEENChina.ResultCertification.Checker
{
    /// <summary>
    /// 检验详细结果
    /// </summary>
    [Serializable]
    [XmlRoot("VP")]
    [DataContract]
    public class VerfityProperties
    {
        private string _verfityItemId = string.Empty;
        private string _reson = string.Empty;
        private string _errorRank = string.Empty;
        private string _pngImageData = string.Empty;

        [XmlIgnore]
        [DataMember]
        public string VerfityItemId {
            get { return _verfityItemId; }
            set { _verfityItemId = value; }
        }


        [XmlElement(ElementName = "Re")]
        [DataMember]
        public string Reason
        {
            get { return _reson; }
            set { _reson = value; }
        }

        /// <summary>
        /// 错误范围
        /// 供录入提示用
        /// </summary>
        [XmlElement(ElementName = "ER")]
        [DataMember]
        public string ErrorRanage
        {
            get { return _errorRank; }
            set { _errorRank = value; }
        }

        /// <summary>
        /// 画像 base64
        /// </summary>
        [XmlElement(ElementName = "PID")]
        [DataMember]
        public string PngImageData {
            get { return _pngImageData; }
            set { _pngImageData = value; }
        }
    }
}
